<%@ Page PathInChannel="user/study{Ext}" RunAt="Execute" %>
<%
if (Manager.User == null)
	Response.Redirect(BuildUrl(null, "user/index", null));
%>
<!doctype html>
<html lang="<%=PageLang%>"<%If PageLang == "UYG"%> class="rtl"<%EndIf%>>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no">
<title>学习</title>
<link rel="stylesheet" href="<%=CommonPath%>aliui/skin/default/ali.mobile.css">
<link rel="stylesheet" href="<%=CommonSkinPath%>css/common.css">
<link rel="stylesheet" href="<%=SkinPath%>css/common.css">
</head>  
<body>
<div class="page flex" id="study">
	<!-- start="标题栏" -->
	<div class="titlebar"><h1>学习</h1></div>
	<!-- end="标题栏" -->
	
	<ali:List ID="List" Mark="Course" Object="CourseStudy" Condition="UserID=User['ID']">
		<div class="list7">
			<ali:Record>
				<dl>
					<dt><img src="<%=CourseThumbnail%>"></dt>
					<dd>
						<h1><%=CourseName%></h1>
						<%If Convert.IsDBNull(StartTime)%>
							<p><a href="<%=BuildUrl(null, "course/view", "ID=" + CourseID)%>">开始学习</a></p>
						<%Else%>
							<h2><i><%=Convert.ToDateTime(StartTime).ToString("MM-dd")%></i><progress value="<%=Value%>" max="<%=Max%>"></progress><b><%=(Convert.ToInt32(Value) * 100) / Convert.ToInt32(Max)%>%(<%=DateTime.Now.Subtract(Convert.ToDateTime(StartTime)).TotalDays.ToString("0")%>天)</b></h2>
							<p><a href="<%=BuildUrl(null, "course/view", "ID=" + CourseID)%>">继续学习</a></p>
						<%EndIf%>
					</dd>
				</dl>
			</ali:Record>
		</div>
	</ali:List>
	<%If List[Count] == 0%>
		<div class="block1"><a href="<%=BuildUrl(null, "course/list", "CategoryID=&Type=&Order=&q=")%>">还没有学习的课程，点此选择</a></div>
	<%EndIf%>				
</div>
<script src="<%=CommonPath%>jquery/core3.js"></script>
<script src="<%=CommonPath%>aliui/ali.mobile.min.js"></script>
<script src="<%=JsPath%>common.js"></script>
</body>
</html>
